package com.chaoXing.work2;

import java.time.LocalDateTime;
import java.time.LocalTime;

public class MyLog implements Cloneable{
//    private LocalTime localTime;
    private String msg="My Log........";

    public MyLog() {
    }

    public MyLog(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "MyLog{" +
                LocalDateTime.now() +"   "+
                "msg='" + msg + '\'' +
                '}';
    }

    @Override
    public MyLog clone() {
        try {
            MyLog clone = (MyLog) super.clone();
            // TODO: copy mutable state here, so the clone can't change the internals of the original
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }


}
